<template>
  <div id="app">
    <header>头部</header>
    <main><router-view /></main>
    <footer>
      ｜
      <router-link to="/">Home</router-link>
      <router-link to="/about">About</router-link>｜
    </footer>
  </div>
</template>

<style lang="scss">
html,
body,
#app {
  width: 100%;
  height: 100%;
}
#app {
  display: flex;
  flex-direction: column;
  header {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #ccc;
  }
  main {
    flex: 1;
    overflow: hidden;
  }
  footer {
    width: 100%;
    height: 50px;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
  }
}
</style>
